package com.etooling.framework.repository;


import com.etooling.framework.entity.PlatformAuth;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface PlatformAuthRepository extends BaseRepository<PlatformAuth> {

    @Query(nativeQuery = true, value = "select * from framework.t_platform_auth where platform_open_id=?1 and platform_type=?2")
    PlatformAuth getByOpenId(String openid, String platform_type);
}
